<template>
  <div class="center">
    <div class="loading">
      <span></span>
      <span></span>
      <span></span>
      <span></span>
      <span></span>
    </div>
  </div>
</template>

<style scoped>
  .center{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%)
  }
  .loading{
    height:40px;
    display:flex;
    justify-content:center;
  }
  .loading span{
    width:8px;
    height:inherit;
    margin:0 2px;
    background-color: #80aaff;
    border-radius:10px;
    animation:loading 1s ease infinite;
  }
  @keyframes loading {
    0%,
    100% {
      transform:scaleY(1.8);
      background-color:#0096e6;
    }
    50% {
      transform:scaleY(1);
      background-color:  #80aaff;
    }
  }
  .loading span:nth-child(2){
    animation-delay: 0.2s;
  }
  .loading span:nth-child(3){
    animation-delay: 0.4s;
  }
  .loading span:nth-child(4){
    animation-delay: 0.6s;
  }
  .loading span:nth-child(5){
    animation-delay: 0.8s;
  }
</style>
